import Vue from 'vue'
import Router from 'vue-router'
// import Login from '@/components/pages/login'
// import Home from '@/components/pages/home'
// import user from '@/components/pages/user'
import product from '@/pages/v1/product'
import login from '@/pages/v1/base/login'
import msg from '@/pages/v1/base/msg'
import register from '@/pages/v1/base/register'
import home from '@/pages/v1/base/home'
import channel from '@/pages/v1/base/channel'
import user from '@/pages/v1/base/user'
import exception from '@/pages/v1/base/exception'
import admin from '@/pages/v1/base/admin'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'product',
            component: product,
            children:[
                {
                    path: '/home',
                    name: 'home',
                    component: home
                },
                {
                    path: '/msg',
                    name: 'msg',
                    component: msg
                },
                {
                    path: '/login',
                    name: 'login',
                    component: login
                },
                {
                    path: '/register',
                    name: 'register',
                    component: register
                },
                {
                    path: '/channel',
                    name: 'channel',
                    component: channel
                },
                {
                    path: '/user',
                    name: 'user',
                    component: user
                },
                {
                    path: '/exception',
                    name: 'exception',
                    component: exception
                },
                {
                    path: '/admin',
                    name: 'admin',
                    component: admin
                }
            ]
        }
    ]
})
